@using BasicLayout = ImoviesBlazorAntPro.BasicLayout
@using ImoviesBlazorAntPro.Client.Components

<CascadingAuthenticationState>
    <Router AppAssembly="@typeof(Program).Assembly">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(BasicLayout)">
                <NotAuthorized>
                    @*重定向到登录页*@
                    <RedirectToLogin></RedirectToLogin>
                </NotAuthorized>
            </AuthorizeRouteView>
        </Found>
        <NotFound>
            <LayoutView Layout="@typeof(FrontLayout)">
                @*404页*@
                <NotFound></NotFound>
                @*<p>Sorry, there's nothing at this address.</p>*@
            </LayoutView>
        </NotFound>
    </Router>
</CascadingAuthenticationState>

<AntContainer />